import Vue from 'vue'
import App from './App'
import router from './routers/index'
import Store from './store/store'



import './style/index'
// var API = require('./urls');
import API from './common/urls'
Vue.prototype.API = API;

import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import toastTopReg from './components/toast_top/toast_top_js'
Vue.use(toastTopReg);

//导入mint UI
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI);

import VueSwiper from 'vue-awesome-swiper'
Vue.use(VueSwiper)

import Func from './common/commonFunc'
Vue.use(Func);
import ServerAPI from './common/server-api'
        // var ServerAPI = require('../../api/server-api')
Vue.prototype.ServerAPI = ServerAPI;

new Vue({
  el: '#app',
  store: Store,
  router,
  template: '<App/>',
  components: { App }
})



